package com.zhaogang.transactionManagerDemo.mapper;

import java.math.BigDecimal;

import org.apache.ibatis.annotations.Param;

import com.zhaogang.transactionManagerDemo.entity.Account;

public interface AccountMapper {
	
	int updateBalanceByAccountNo(@Param("accountNo")String accountNo, @Param("amount")BigDecimal amount);

	Account getByAccountNo(@Param("accountNo")String toAccountNo);

	int updateBalanceById(Account toAccount);
	
}